package org.springframework.beans;
import org.springframework.beans.Cat;
import org.springframework.beans.factory.annotation.Autowired;

public class Person {
	@Autowired
	private Cat cat;

	public void setCat(Cat cat) {
		this.cat = cat;
	}

	private String name;
	private int age;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	@Override
	public String toString() {
		return "Person{" +
				"name='" + name + '\'' +
				", age=" + age +
				'}';
	}
}
